local padA = script.Parent.TeleporterA.PadA local padB = script.Parent.TeleporterB.PadB local padC = script.Parent.TeleporterC.PadC local sndA = padA.Charge local sndB = padB.Charge local roof = script.Parent.TeleporterA.RoofA local players = game:GetService("Players") local canTeleport = true local coolDown = 5 local function translocate(otherPart) local hrp = otherPart.Parent:FindFirstChild("HumanoidRootPart") if hrp then local player = players:GetPlayerFromCharacter(otherPart.Parent) if player and canTeleport then canTeleport = false sndA:Play() wait(sndA.TimeLength * .8) hrp.CFrame = CFrame.new(padB.Position) + Vector3.new(0, 3, 0) padA.BrickColor = BrickColor.Gray() padA.Material = Enum.Material.Plastic roof.BrickColor = BrickColor.Gray() roof.Material = Enum.Material.Plastic wait(coolDown) sndB:Play() wait(sndB.TimeLength * .8) canTeleport = true hrp.CFrame = CFrame.new(padC.Position) + Vector3.new(0, 3, 0) padA.BrickColor = BrickColor.new("Lime green") padA.Material = Enum.Material.Neon roof.BrickColor = BrickColor.new("Lime green") roof.Material = Enum.Material.Neon end end end padA.Touched:Connect(translocate)